package com.yipao.db.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.YipaoNotice;
import com.yipao.db.domain.YipaoNoticeExample;

public interface NoticeMapper {

    long countByExample(YipaoNoticeExample example);


    int deleteByExample(YipaoNoticeExample example);


    int deleteByPrimaryKey(Integer id);


    int insert(YipaoNotice record);


    int insertSelective(YipaoNotice record);


    YipaoNotice selectOneByExample(YipaoNoticeExample example);


    YipaoNotice selectOneByExampleSelective(@Param("example") YipaoNoticeExample example, @Param("selective") YipaoNotice.Column ... selective);


    List<YipaoNotice> selectByExampleSelective(@Param("example") YipaoNoticeExample example, @Param("selective") YipaoNotice.Column ... selective);


    List<YipaoNotice> selectByExample(YipaoNoticeExample example);


    YipaoNotice selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") YipaoNotice.Column ... selective);


    YipaoNotice selectByPrimaryKey(Integer id);


    YipaoNotice selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);


    int updateByExampleSelective(@Param("record") YipaoNotice record, @Param("example") YipaoNoticeExample example);


    int updateByExample(@Param("record") YipaoNotice record, @Param("example") YipaoNoticeExample example);


    int updateByPrimaryKeySelective(YipaoNotice record);


    int updateByPrimaryKey(YipaoNotice record);


    int logicalDeleteByExample(@Param("example") YipaoNoticeExample example);


    int logicalDeleteByPrimaryKey(Integer id);
}
